namespace UniversalAdmin.Application.Dtos.Article;

/// <summary>
/// 文章数据传输对象
/// </summary>
public class ArticleDto
{
    /// <summary>
    /// 文章ID
    /// </summary>
    public Guid Id { get; set; }

    /// <summary>
    /// 文章标题
    /// </summary>
    public string Title { get; set; } = string.Empty;

    /// <summary>
    /// 文章内容
    /// </summary>
    public string? Content { get; set; }

    /// <summary>
    /// 文章摘要
    /// </summary>
    public string? Summary { get; set; }

    /// <summary>
    /// 文章状态 (draft: 草稿, published: 已发布, archived: 已归档)
    /// </summary>
    public string Status { get; set; } = "draft";

    /// <summary>
    /// 文章分类ID
    /// </summary>
    public Guid? CategoryId { get; set; }

    /// <summary>
    /// 作者用户ID
    /// </summary>
    public Guid? UserId { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime CreatedAt { get; set; }

    /// <summary>
    /// 更新时间
    /// </summary>
    public DateTime UpdatedAt { get; set; }

    /// <summary>
    /// 分类名称 (导航属性)
    /// </summary>
    public string? CategoryName { get; set; }

    /// <summary>
    /// 作者用户名 (导航属性)
    /// </summary>
    public string? UserName { get; set; }

    public bool IsActive { get; set; }
}
